package com.felix.load;

/**
 * Father
 *
 * @author xuejinhua
 * @date 2019/1/23 16:22
 */
public class Father {

    protected void doSomething(){
        System.out.println("Father's doSomething");
        this.doSomething();
    }

    public static void main(String[] args) {
        Father father = new Son();
        father.doSomething();
    }
}

class Son extends Father {
    @Override
    protected void doSomething() {
        System.out.println("Son's doSomething");
        super.doSomething();
    }
}
